package packge.io;

import java.io.*;

class IOTest2 {
	public static void main(String st[]) throws Exception {
		MyKBReader reader = new MyKBReader();
		System.out.println("Enter first Value");
		double d1 = Double.parseDouble(reader.readLine());
		System.out.println("Enter second Value");
		double d2 = Double.parseDouble(reader.readLine());
		System.out.println(d1 + d2);
	}
}

class MyKBReader {
	public String readLine() throws IOException {
		String data = "";
		while (true) {
			int ab = System.in.read();
			if (ab == 13)
				break;
			data = data + (char) ab;
			System.out.println(ab + "\t" + (char) ab + "\t" + data);
		}
		System.in.read(); // to ignore ascii
		return data;
	}
}